package com.bkgy.controller.tPdiDataL3Tcm2280.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bkgy.controller.tPdiDataL3Tcm2280.entity.TPdiDataL3Tcm2280;
import com.bkgy.controller.tPdiDataL3Tcm2280.entity.tPdiDataL3Tcm2280Entity;
import com.bkgy.controller.tPdiDataL3Tcm2280.mapper.TPdiDataL3Tcm2280mapper;
import com.bkgy.controller.tPdiDataL3Tcm2280.service.ITPdiDataL3Tcm2280Service;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TPdiDataL3Tcm2280ServiceImpl extends ServiceImpl<TPdiDataL3Tcm2280mapper, TPdiDataL3Tcm2280> implements ITPdiDataL3Tcm2280Service {

    @Autowired
    private TPdiDataL3Tcm2280mapper tPdiDataL3Tcm2280mapper;


    /**
     * tPdiDataL3Tcm2280表查询
     *
     * @return ResultData
     */
    public ResultData getPdiDataL3Tcm2280_page(List<String> coilIds) {
        try {
            List<tPdiDataL3Tcm2280Entity> list = tPdiDataL3Tcm2280mapper.getPdiDataL3Tcm2280_page(coilIds);
            return ResultData.ResultDataSuccess(list);
        } catch (Exception e) {
            e.printStackTrace();
            return ResultData.ResultDataFaultSelf("获取失败" + e.getMessage(), null);
        }
    }

    @Override
    public TPdiDataL3Tcm2280 selectByEntId(String entId) {
        return tPdiDataL3Tcm2280mapper.selectTocTime(entId);
    }
}
